package com.ftg.learn.controller;

import com.ftg.learn.entity.SysUser;
import com.ftg.learn.service.ISysUserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 用户表 前端控制器
 * </p>
 *
 * @author 布衣
 * @since 2025-09-04
 */
@RestController
@RequestMapping("/sysUser")
public class SysUserController {

    @Resource
    ISysUserService sysUserService;

    @GetMapping(value = "/list")
    public List<SysUser> list(){
        return sysUserService.list();
    }
}
